//当前模块，API进行统一管理，即对请求接口统一管理
import request from "@/utils/request";
//注册
export const reqSignup = (data) => request.post("/v1/signup", data);
//登录
export const reqLogin = (data) => request.post("/v1/login", data);
//获取所有医院
export const reqGetHospital = () => request.get("/v1/home");
//获取科室数据
export const reqHospitalDeparment = (id) => request.get(`/v1/hospital/${id}`);
//预约
export const reqAppointment = (hospital_id, detailed_deparment_id) =>
  request.get(`/v1/order/${hospital_id}/${detailed_deparment_id}`);
//挂号(获取所有预约信息)
export const reqslot = (data) => request.post("/v1/slot", data);
//添加就诊人
export const addpatient = (userParams) =>
  request.post("/v1/patient", userParams);
// 获取所有就诊人信息
export const getpatients = (user_id) => request.get(`/v1/patient/${user_id}`);
